<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台布局</title>
    <link rel="stylesheet" href="/lib/layui-v2.7.3/layui/css/layui.css">
</head>
<body>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="demo" style="margin-right: 10px;">
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">默认展开</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">选项一</a></dd>
                        <dd><a href="javascript:;">选项二</a></dd>
                        <dd><a href="javascript:;">选项三</a></dd>
                        <dd><a href="form">跳转项</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">解决方案</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">移动模块</a></dd>
                        <dd><a href="javascript:;">后台模版</a></dd>
                        <dd><a href="javascript:;">电商平台</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="javascript:;">云市场</a></li>
                <li class="layui-nav-item"><a href="javascript:;">社区</a></li>
            </ul>
        </div>
    </div>

<script src="/lib/layui-v2.7.3/layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['form', 'util', 'laydate','element'], function(){
        var element = layui.element;
        //导航点击事件
        element.on('nav(demo)', function(elem){
            layer.msg(elem.text());
        });
    });
</script>
</body>
</html>